<?php
/**
 * Created by PhpStorm.
 * User: yu
 * Date: 2017/1/6
 * Time: 下午1:41
 * 后台品牌管理类
 */
namespace Admin\Controller;

use Common\Controller\AdminController;
use Common\Model\BrandModel;

class BrandController extends AdminController
{
	protected $brandModel;
	public function __init(){
		parent::__init();
		$this->brandModel = new BrandModel();
	}

	/**
	 * 品牌列表
	 */
	public function lists(){
		$this->display();
	}
	/**
	 * 添加品牌
	 */
	public function add(){
		if(IS_POST){

			$_POST['logo'] = current($_POST['logo']);
			$this->store($this->brandModel,$_POST);
		}else{

			$this->display();
		}
	}







}
